package com.webside.advertisement.service;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.webside.advertisement.model.AdPositionEntity;
import com.webside.advertisement.model.AdReleaseEntity;
import com.webside.advertisement.model.AdvertisementEntity;
import com.webside.series.model.Bdictionary;
import com.webside.series.model.SeriesEntity;
import com.webside.util.PageUtil;

public interface AdReleaseService {

	//<!-- editUI查询 -->
  	public AdReleaseEntity findById(Long id);
    //<!-- 修改 -->
  	public int update(AdReleaseEntity advertisementEntity);
    //<!-- 刪除 -->
    public int deleteBatchById(List<Long> id);
    //<!-- 添加 -->
    public int insert(AdReleaseEntity advertisementEntity);
    //<!-- list查询 -->
  	public List<AdReleaseEntity> queryListByPage(Map<String, Object> parameter);
  	//根据广告位ID查询
  	public List<HashMap<String, Object>> queryListByAdP(String id);
  	//查询所有广告位ID
  	public List<AdPositionEntity> queryAllAdPositionCode();
  	//查询一天广告位剩余时间
  	public List<AdReleaseEntity> selectSubTime(String date,String pCode);
  	//根据查询一个广告位一天的所有广告
  	public List<AdReleaseEntity> queryListByAdPAnddate(String code,String sdate,String edate,String type);
  	//和上个方法一样 ，关联查询
  	public List<HashMap<String, Object>> queryListByAdRelease(String code,String sdate,String edate,String type);
  	//查询广告位类型
  	public int updatePass(List<Long> ids);
}